<template>
    <div>
        <div>{{ obj.name }}</div>
        <div>{{ obj.password }}</div>
        <div>{{ obj.result.res.bes[0] }}</div>
        <button @click="btn">点击1</button>
    </div>
</template>
<script>
    import{reactive, ref,emit} from 'vue'
    export default {
        setup(options,setupContext){
        const {slots, attrs, emit, expose} = setupContext;
            const name="张三"
            const password='61281628'
            const result={
                res:{
                    bes:[]
                }
            }
            const obj=reactive({
                name,
                password,
                result
            })
            const btn=()=>{
                //obj.result.res.bes[0]='更深层的调用'

                emit('close',1)
            }
            return{
                obj,btn
            }
        }
    }
</script>

<style scoped>

</style>